package com.jersey;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;


@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "feed")
public class DealsFeedData {
	private Integer responseCode = 0;
	private String errorMessage = null;
	private DealTableBean deals = null;
	
	public DealsFeedData() {
		
	}
	
	public DealsFeedData(DealTableBean deals) {
		this.deals = deals;
	}
	
	public DealsFeedData(ResponseMessage responseMessage) {
		this.responseCode = responseMessage.getCode();
		this.errorMessage = responseMessage.getErrorMessage();
	}
	
	public DealsFeedData(Integer responseCode, String errorMessage) {
		this.responseCode = responseCode;
		this.errorMessage = errorMessage;
	}

	public DealsFeedData(Integer responseCode, String errorMessage,
			DealTableBean deals) {
		this.responseCode = responseCode;
		this.errorMessage = errorMessage;
		this.deals = deals;
	}

	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public Integer getResponseCode() {
		return responseCode;
	}
	public void setResponseCode(Integer responseCode) {
		this.responseCode = responseCode;
	}


	public DealTableBean getDeals() {
		return deals;
	}


	public void setDeals(DealTableBean deals) {
		this.deals = deals;
	}
	
}
